package Others.DesignPattern.SimpleFactoryPattern.Pattern.Calculate;

public class OperationDiv extends Operation {
    @Override
    public double getResult() {
        if(getNumberB() != 0)
            return numberA / numberB;
        System.out.println("除数不能为0");
        return 0;
    }
}
